package com.kensure.shike.user.model;

import java.util.Date;

import co.kensure.frame.BaseInfo;
import co.kensure.mem.DateUtils;

/**
 * 会员分润情况对象类
 * 
 * @author fankd created on 2019-6-24
 * @since
 */
public class SKUserFR extends BaseInfo {

	private static final long serialVersionUID = 3545276994084105527L;

	/***/
	private Long id;

	/** 产生交易的会员id */
	private Long userid;

	/** 状态，1是正常，0是未生效，-1是失效 */
	private Integer status;

	/** 金额 */
	Double jine;

	/** 获得直接分润的用户id */
	private Long fruserid1;

	/** 直接分润金额 */
	private Double frjine1;

	/** 获得间接分润的用户id */
	private Long fruserid2;

	/** 间接分润金额 */
	private Double frjine2;

	/** 发生时间 */
	private Date timeStart;

	/** 到账时间 */
	private Date timeExpire;

	/** 支付类型,DD订单支付,VIP会员续费 */
	private String paytype;

	/** 订单的id */
	private String orderid;
	
	/** 市办事处人员id */
	private Long bscid1;

	/** 市办事处分润金额 */
	private Double bscjine1;
	
	/** 县办事处人员id*/
	private Long bscid2;

	/** 县办事处分润金额 */
	private Double bscjine2;
	
	/** 手续费 */
	private Double sxf;
	/** 利润 */
	private Double lirun;
	
	/** 推荐人1id */
	private Long tjr1;

	/** 推荐人1分润金额 */
	private Double tjrjine1;
	
	/** 推荐人2id*/
	private Long tjr2;

	/** 推荐人2分润金额 */
	private Double tjrjine2;
	
	private String userName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Double getJine() {
		return jine;
	}

	public void setJine(Double jine) {
		this.jine = jine;
	}

	public Long getFruserid1() {
		return fruserid1;
	}

	public void setFruserid1(Long fruserid1) {
		this.fruserid1 = fruserid1;
	}

	public Double getFrjine1() {
		return frjine1;
	}

	public void setFrjine1(Double frjine1) {
		this.frjine1 = frjine1;
	}

	public Long getFruserid2() {
		return fruserid2;
	}

	public void setFruserid2(Long fruserid2) {
		this.fruserid2 = fruserid2;
	}

	public Double getFrjine2() {
		return frjine2;
	}

	public void setFrjine2(Double frjine2) {
		this.frjine2 = frjine2;
	}

	public Date getTimeStart() {
		return timeStart;
	}

	public void setTimeStart(Date timeStart) {
		this.timeStart = timeStart;
	}
	public String getTimeStartDay() {
		return DateUtils.format(createdTime,DateUtils.DAY_FORMAT);
	}

	public Date getTimeExpire() {
		return timeExpire;
	}
	public String getTimeExpireDay() {
		if(timeExpire == null){
			return "收货后7天";
		}
		return DateUtils.format(timeExpire,DateUtils.DAY_FORMAT);
	}
	
	public void setTimeExpire(Date timeExpire) {
		this.timeExpire = timeExpire;
	}

	public String getPaytype() {
		return paytype;
	}

	public void setPaytype(String paytype) {
		this.paytype = paytype;
	}

	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getBscid1() {
		return bscid1;
	}

	public void setBscid1(Long bscid1) {
		this.bscid1 = bscid1;
	}

	public Double getBscjine1() {
		return bscjine1;
	}

	public void setBscjine1(Double bscjine1) {
		this.bscjine1 = bscjine1;
	}

	public Long getBscid2() {
		return bscid2;
	}

	public void setBscid2(Long bscid2) {
		this.bscid2 = bscid2;
	}

	public Double getBscjine2() {
		return bscjine2;
	}

	public void setBscjine2(Double bscjine2) {
		this.bscjine2 = bscjine2;
	}

	public Double getSxf() {
		return sxf;
	}

	public void setSxf(Double sxf) {
		this.sxf = sxf;
	}

	public Double getLirun() {
		return lirun;
	}

	public void setLirun(Double lirun) {
		this.lirun = lirun;
	}

	public Long getTjr1() {
		return tjr1;
	}

	public void setTjr1(Long tjr1) {
		this.tjr1 = tjr1;
	}

	public Double getTjrjine1() {
		return tjrjine1;
	}

	public void setTjrjine1(Double tjrjine1) {
		this.tjrjine1 = tjrjine1;
	}

	public Long getTjr2() {
		return tjr2;
	}

	public void setTjr2(Long tjr2) {
		this.tjr2 = tjr2;
	}

	public Double getTjrjine2() {
		return tjrjine2;
	}

	public void setTjrjine2(Double tjrjine2) {
		this.tjrjine2 = tjrjine2;
	}

}
